﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TPager_Info.aspx.cs" Inherits="ExamSystem.ht.TPager_Info" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>试卷信息</title>
	<meta charset="utf-8"/>
	<meta name="renderer" content="webkit|ie-comp|ie-stand"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="stylesheet" type="text/css" href="../h-ui/static/h-ui/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="../h-ui/static/h-ui.admin/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="../h-ui/lib/Hui-iconfont/1.0.8/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="../h-ui/static/h-ui.admin/skin/default/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="../h-ui/static/h-ui.admin/css/style.css" />
	<script type="text/javascript" src="../h-ui/lib/jquery/1.9.1/jquery.min.js"></script> 
	<script type="text/javascript" src="../h-ui/lib/layer/2.4/layer.js"></script>
	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript">
        //展开和隐藏试题
	    var oq = 0;
	    function optionQuestion(obj) {
	        if (oq == 0) {
	            document.getElementById("tablePQ").style.display = "none";
	            obj.value = "展开试题";
	            oq = 1;
	        } else {
	            document.getElementById("tablePQ").style.display = "";
	            obj.value = "折叠试题";
	            oq = 0;
	        }
	    }
        //展开和隐藏学生
	    var os = 0;
	    function optionStudent(obj) {
	        if (os == 0) {
	            document.getElementById("tablePS").style.display = "none";
	            obj.value = "展开学生";
	            os = 1;
	        } else {
	            document.getElementById("tablePS").style.display = "";
	            obj.value = "折叠学生";
	            os = 0;
	        }
	    }
	</script>
</head>
<body>
    <nav class="breadcrumb">
		    <i class="Hui-iconfont">&#xe67f;</i> 
		    首页 <span class="c-gray en">&gt;</span> 
		    试题信息 <span class="c-gray en">&gt;</span> 
		    试卷管理 <span class="c-gray en">&gt;</span>
            试卷信息
	 </nav>
    <form id="form1" runat="server" class="Huiform">
    <div>
	    <div class="page-container">

            <div class="mt-20">
			    <table class="table table-border table-bordered table-bg table-hover table-sort" id="tablePS" style="margin-bottom:20px">
                    <thead>
					            <tr class="text-c">
						            <th width="20%">班级</th>
						            <th width="30%">学号</th>
						            <th width="30%">姓名</th>
						            <th width="10%">成绩</th>
						            <th width="10%">操作</th>
					            </tr>
				     </thead>
                    <asp:Repeater ID="Repeater1" runat="server">
                        <ItemTemplate>
                                <tr class="text-c">
						            <td><%# Eval("tsid") %></td>
						            <td><%# Eval("tsno") %></td>
                                    <td><%# Eval("tsname") %></td>
                                    <td><%# Eval("tsscore") %></td>
                                    <td class="td-manage">
                                        <a style="text-decoration:none" class="ml-5" onclick="location.href='TAnswer_Info.aspx?pagerId=<%=Request.QueryString["id"] %>&stuId=<%# Eval("tsid") %>'" href="javascript:;" title="成绩查看">
								            <i class="Hui-iconfont">&#xe665;</i>
							            </a>
						            </td>
					            </tr>
                            </ItemTemplate>
                        </asp:Repeater>
			    </table>
             </div>

		    <div class="mt-20">
			    <table class="table table-border table-bordered table-bg table-hover table-sort" style="margin-bottom:20px" id="tablePQ">
                    <thead>
					            <tr class="text-c">
						            <th width="15%">课程</th>
						            <th width="70%">题目</th>
						            <th width="5%">类型</th>
						            <th width="5%">分值</th>
						            <th width="5%">操作</th>
					            </tr>
				     </thead>
                    <asp:Repeater ID="Repeater2" runat="server">
                        <ItemTemplate>
                                <tr class="text-c">
						            <td><%# Eval("tkcid.tkcname") %></td>
						            <td name="tqName"><%# Eval("tqname") %></td>
                                    <td><%# Eval("tqtype")=="单选"?"单选":"多选" %></td>
						            <td><%# Eval("tqscore") %></td>
						            <td class="td-manage">
                                        <a style="text-decoration:none" class="ml-5" onclick="location.href='TQuestion_Info.aspx?id=<%# Eval("tqid") %>'" href="javascript:;" title="试题查看">
								            <i class="Hui-iconfont">&#xe665;</i>
							            </a>
						            </td>
					            </tr>
                            </ItemTemplate>
                   </asp:Repeater>
			    </table>
             </div>
	    </div>
        <div  style="position:fixed;bottom:5px;right:10px;background-color:gainsboro;width:100%;text-align:right;">
                    试卷名:<font color="red"><label runat="server" id="lbTpName" /></font>&nbsp;&nbsp;&nbsp;&nbsp;
                    总成绩:<font color="red"><b><label runat="server" id="lbTpScore" /></b></font>&nbsp;&nbsp;&nbsp;&nbsp;
                    总数目:<font color="red"><b><label runat="server" id="lbTpCount" /></b></font>&nbsp;&nbsp;&nbsp;&nbsp;
                    总人数:<font color="red"><b><label runat="server" id="lbTsCount" /></b></font>&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="button" class="btn btn-primary radius" value="  折叠试题  " onclick="optionQuestion(this)" />&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="button" class="btn btn-primary radius" value="  折叠学生  " onclick="optionStudent(this)" />&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="button" class="btn btn-primary radius" value="  返    回  " onclick="history.go(-1)" />&nbsp;&nbsp;&nbsp;&nbsp;
	    </div>
    </div>
    </form>
    <script>
        //防止是试题名称过长
        var tds = document.getElementsByName("tqName");
        for (var i = 0; i < tds.length; i++) {
            if (tds[i].innerText.length >= 50) {
                tds[i].innerText = tds[i].innerText.substring(0, 50);
            }
        }
    </script>
</body>
</html>
